package io;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Scanner;

public class IO {
	


	
	private Scanner getInput(String inputInfo)
	{
		
		System.out.println(inputInfo+": ");
		Scanner scanner = new Scanner (System.in);
		return scanner;
	}
	private String getLineInput(String inputInfo) throws IOException
	{
		
		System.out.println(inputInfo+": ");
	
		InputStreamReader converter = new InputStreamReader(System.in);
		BufferedReader in = new BufferedReader(converter);
		return in.readLine();
	}
	
	
	public String getReportingRoomNumber()
	{
		return getInput("Input the Reporting Room Number").next();
	}
	
	public String getAcademicYear()
	{
		return getInput("Input the Academic Year").next();
	}
	
	public String getSemester() throws IOException
	{
		return getLineInput("Input the Semester");
	}
	
	public ArrayList<String> getRoomNumbers(int numRoom) throws IOException
	{
		Scanner receivedStrings=getInput("Input the Room Numbers");
		
		ArrayList<String> roomNumbers= new ArrayList<String>();
		for (int i=0; i<numRoom; i++){
			roomNumbers.add(receivedStrings.next());
		}
			
		
		return roomNumbers;
	}
	

	
	public String getStartingTime()
	{
		return getInput("Input the Starting Time").next();
	}
	
	
	
	
	
	
	
	public String getCsvStudentList()
	{
		
		return null;
	}
	
	public void showInfo(String output)
	{
		
		
		
	}

	
}
